{include file="public/_meta" /}
<title></title>
<style>
    input{
        width:30px;
        border:none;
    }

</style>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>订单管理 <span class="c-gray en">&gt;</span> 订单列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="text-c">
        <form class="Huiform" method="get" action="" target="_self">
            操作人身份：
            <span class="select-box inline">
			<select name="or_status" class="select">
				<option value="">全部</option>
				<option value="1">管理员</option>
                <option value="2">客服</option>
			</select>
		</span>&nbsp;&nbsp;
            <input type="text" class="input-text" style="width:180px" placeholder="操作人名字/充值手机号" name="name" value="">
            日期范围：
            <input type="text" class="input-text Wdate" name="start" id="countTimestart" onfocus="selecttime(1)" value="{$Request.get.start|default=''}" size="17" class="date" readonly style="width:140px;">
            -
            <input type="text" class="input-text Wdate" name="end" id="countTimeend" onfocus="selecttime(2)" value="{$Request.get.end|default=''}" size="17"  class="date" readonly style="width:140px;">

            <button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>

        </form>
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="r">共有数据：<strong> {$list->total()}</strong> 条</span> </div>
    <div class="mt-20">
        <table class="table table-border  table-hover table-bg table-sort">
            <thead>
            <tr class="text-c">
                <th>操作人名字</th>
                <th>操作⼈账号</th>
                <th>操作⼈身份</th>
                <th>充值手机号</th>
                <th>充值金额</th>
                <th>操作时间</th>
                <th>操作内容</th>
            </tr>
            </thead>
            <tbody>
            {volist name='list' id="vo"}
            <tr class="text-c">
                <td>{$vo.admin_user_name}</td>
                <td>{$vo.admin_user_phone}</td>
                <td>
                    {if ( $vo.admin_user_identity == 1) } 管理员
                    {elseif $vo.admin_user_identity == 2 /}客服
                    {elseif $vo.admin_user_identity == 3 /}供货商
                    {/if}
                </td>
                <td>{$vo.chongzhi_ren}</td>
                <td>{$vo.chongzhi_money}</td>
                <td>{$vo.edit_time}</td>
                <td>{$vo.content}</td>
            </tr>
            {/volist}
            </tbody>
        </table>
        <div class="pages" style="margin:20px;float: right; ">{$list|raw}</div>
    </div>
    {include file="public/_footer" /}
    <!--请在下方写此页面业务相关的脚本-->
    <script type="text/javascript" src="/static/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>

    <script type="text/javascript">
        $('select[name="or_status"]').val({$Request.get.or_status});
        $('select[name="or_num"]').val({$Request.get.or_num});
        $('select[name="st_id"]').val({$Request.get.st_id});
        function create(id,url,key){
            var url = "{:url('"+url+"')}?id="+id;
            creatIframe(url,key);
        }


        function selecttime(flag){
            if(flag==1){
                var endTime = $("#countTimeend").val();
                if(endTime != ""){
                    WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',maxDate:endTime})}else{
                    WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})}
            }else{
                var startTime = $("#countTimestart").val();
                if(startTime != ""){
                    WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',minDate:startTime})}else{
                    WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})}
            }
        }
    </script>
</body>
</html>